package com.wang.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Classname PayInfo
 * @Description TODO
 * @Date 2024/9/14 12:08
 * @Created by pc
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "支付信息实体类")
public class PayInfo implements Serializable {
    @ApiModelProperty("id")
    private Integer id;
    @ApiModelProperty("用户id")
    private Integer userId;//'用户id',
    @ApiModelProperty("订单号")
    private Long orderNo;// '订单号',
    @ApiModelProperty("支付平台")
    private Integer payPlatform;// '支付平台:1-支付宝,2-微信',
    @ApiModelProperty("支付宝支付流水号")
    private String platformNumber;//'支付宝支付流水号',
    @ApiModelProperty("支付宝支付状态")
    private String platformStatus;//'支付宝支付状态',
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("创建时间")
    private Date createTime;// '创建时间',
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("最后一次更新时间")
    private Date updateTime;//'最后一次更新时间',

}
